# 任务队列的链接地址
broker_url = 'redis://127.0.0.1:6379/15'
# 结果队列的链接地址
result_backend = 'redis://127.0.0.1:6379/14'



from mycelery.main import app
from celery.schedules import crontab
app.conf.timezone = "Asia/Shanghai"
app.conf.beat_schedule = {
    "pub_article":{
        "task":"check_article",
        "schedule":crontab(minute='*/2')
    }
}